/*
 *    Copyright (C) 2007-2009 Aike J Sommer
 *
 *
 *    This program is free software: you can
 *    redistribute it and/or modify it under the terms of the GNU
 *    General Public License as published by the Free Software
 *    Foundation, either version 3 of the License, or (at your
 *    option) any later version.
 *
 *    This program is distributed in the hope
 *    that it will be useful, but WITHOUT ANY WARRANTY; without even
 *    the implied warranty of MERCHANTABILITY or FITNESS FOR A
 *    PARTICULAR PURPOSE.  See the GNU General Public License for
 *    more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with this program.  If not, see
 *    <http://www.gnu.org/licenses/>.
 *
 *
 *    You can reach the author and get more information about this
 *    project at: http://aikesommer.name/ or
 *    http://code.google.com/p/viewncontrol
 */

package name.aikesommer.viewncontrol.web.xml;

import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Aike J Sommer
 */
@XmlRootElement(name = "update")
public class CursorUpdate {

    private boolean update = false;
    private boolean shape = false;
    private ScreenSlice cursor;

    public CursorUpdate() {
    }

    public CursorUpdate(ScreenSlice cursor, boolean shape) {
        this.cursor = cursor;
        this.shape = shape;
        update = true;
    }

    public boolean isShape() {
        return shape;
    }

    public void setShape(boolean shape) {
        this.shape = shape;
    }

    public ScreenSlice getCursor() {
        return cursor;
    }

    public void setCursor(ScreenSlice cursor) {
        this.cursor = cursor;
    }

    public boolean isUpdate() {
        return update;
    }

    public void setUpdate(boolean update) {
        this.update = update;
    }

}
